<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let x = 'aa nnn aa aaaaa'
        let y=/\a{3,}/g
        console.log(x.match(y))
        //{n}n个  {n,}n到无数个  {n,m}n到m个

    </script>
</body>
</html>